package com.ruoyi.wechat.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wechat.mapper.WxOnlineServiceMapper;
import com.ruoyi.wechat.domain.WxOnlineService;
import com.ruoyi.wechat.service.IWxOnlineServiceService;

/**
 * 在线客服消息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-28
 */
@Service
public class WxOnlineServiceServiceImpl implements IWxOnlineServiceService 
{
    @Autowired
    private WxOnlineServiceMapper wxOnlineServiceMapper;

    /**
     * 查询在线客服消息
     * 
     * @param messageId 在线客服消息主键
     * @return 在线客服消息
     */
    @Override
    public WxOnlineService selectWxOnlineServiceByMessageId(String messageId)
    {
        return wxOnlineServiceMapper.selectWxOnlineServiceByMessageId(messageId);
    }

    /**
     * 查询在线客服消息列表
     * 
     * @param wxOnlineService 在线客服消息
     * @return 在线客服消息
     */
    @Override
    public List<WxOnlineService> selectWxOnlineServiceList(WxOnlineService wxOnlineService)
    {
        return wxOnlineServiceMapper.selectWxOnlineServiceList(wxOnlineService);
    }

    /**
     * 新增在线客服消息
     * 
     * @param wxOnlineService 在线客服消息
     * @return 结果
     */
    @Override
    public int insertWxOnlineService(WxOnlineService wxOnlineService)
    {
        return wxOnlineServiceMapper.insertWxOnlineService(wxOnlineService);
    }

    /**
     * 修改在线客服消息
     * 
     * @param wxOnlineService 在线客服消息
     * @return 结果
     */
    @Override
    public int updateWxOnlineService(WxOnlineService wxOnlineService)
    {
        return wxOnlineServiceMapper.updateWxOnlineService(wxOnlineService);
    }

    /**
     * 批量删除在线客服消息
     * 
     * @param messageIds 需要删除的在线客服消息主键
     * @return 结果
     */
    @Override
    public int deleteWxOnlineServiceByMessageIds(String[] messageIds)
    {
        return wxOnlineServiceMapper.deleteWxOnlineServiceByMessageIds(messageIds);
    }

    /**
     * 删除在线客服消息信息
     * 
     * @param messageId 在线客服消息主键
     * @return 结果
     */
    @Override
    public int deleteWxOnlineServiceByMessageId(String messageId)
    {
        return wxOnlineServiceMapper.deleteWxOnlineServiceByMessageId(messageId);
    }
}
